002 s7 1200 plc how processor works
这就是前进。
That's move ahead.
所以这基本上是忙碌的。
So this was a basically out of busy.
现在让我们看看这个过程是如何工作的,因为除非这些棋子是盗版的,否则就不会使用输入和输出。
Now let's see how the process works because unless the pieces are rogues there's no use of inputs and outputs.
但这是木子的主脑。
But this is the main brain of the Muzi.
所以我们必须了解这个处理器是如何工作的,这样我们才能相应地制定我们的逻辑。
So we have to understand how this processor is working so that we can make our logic accordingly.
那么第四步是什么呢?
So what is the fourth step.
我们有一个启动模式,现在启动模式是在手动模式之前执行的模式。
We have a startup mode now startup mode is the mode which is executed before man mode.
好的,我们也会看到它的验证。
OK we will see the validation of that as well.
所以第四步是处理M.H.
So the fourth step is process M.H.
输入记忆是关键。
input memory is key.
现在发生的事情是拿起一支笔,据说这些就是输入。
Now what happened is take a pen now supposedly these are the inputs.
好的。
OK.
现在该输入的状态存储在某些存储器中。
Now the status of this input is stored in some memory.
如果我说这是一个内存块,它存储我输入的信息。
If I say this is a memory block it stores the information of my inputs.
好的。
OK.
现在假设我的第一个输入已打开,它将采用第一部分,因为我的第二个输入中的一个已关闭。
Now suppose my first input is on it will take the first part as one in my second input is off.
如果 my 则将其设置为 0,然后按它会将其设置为 1,依此类推。
It will make it as 0 if my and press on it will make it 1 and so forth.
否 所有地址的地址 所有输入的状态并在该存储器中存储数据。
No the addresses of all the addresses the status of all the inputs and store data in this memory.
好的,所以在每次离开时,当 PNC 打开时,它会被清除,因此一切都变为 0。
OK so in each leaving initially when PNC is on this is cleared so everything is made 0.
这就是他们所说的清晰的意思。
This is what they me mean by clear.
进程已清除。
The process is cleared.
这就是它的意思。
This is what it means.
静态模式。
Static mode.
好的。
OK.
所以现在下一个输出是用最后一个值初始化的。
So it now the next is output are initialized with the last value.
现在很难理解会发生什么。
Now this is complicated to understand what would happen.
假设如果您的电脑关闭,然后您将其打开,则它处于启动模式,输出状态在上一个周期中得到解决,并且美容已关闭。
Suppose if your pc goes off and then you turn it on it's in the startup mode the status of outputs which are resolved in the last cycle and beauty was off.
这将被初始化。
That will be initialized.
假设您有一台 PC 并且将其打开。
Suppose you have a PC and you turn it on.
你正在执行这个过程。
You're executing the process.
出现故障,然后您关闭电脑。
And there's a failure then you turn off the PC.
于是音乐就消失了。
So the music goes off.
认为。
Suppose.
现在我执行一些输入并关闭电脑。
Right now I execute some inputs and I turn off the PC.
所以我所做的就是从这里拔掉我的电脑的插头,然后一切就结束了。
So what I do is I will just unplug my PC from here and this goes off.
因此,输出中发生的一些事情正在运行,但它消失了。
So some of what was going on output was running but it goes off.
但是当我打开它时,它会存储输出处的值。
But when I turn it on it will store the value which was at the output.
它只会保存该值。
It will just save that value.
好的,所以输出将再次初始化,但最后一个值,但只有当您的逻辑中有保持性记忆时,才会发生这种情况。
OK so output will be initialized again but the last value but this will happen only if you have a retentive memory in your logic.
不知道它在内存中添加了什么,以后就明白了。
No what does it add in the memory will understand later.
但例如,您可以理解,即使断电,有些内存也不会重置,而当电源再次恢复时,球就消失了。
But for for instance you can understand there are some memory which are not reset even if the power goes off and the ball is when the power come back again.
这些位保留了它们的信息,并且与一般存储器中的一般存储器不同,这些位会再次完成。
Those bits retain their information and those get done on again unlike general memories in general memories.
这些是易失性的,但随机存储器是非易失性的。
These are volatile but random memories are nonvolatile.
您必须手动重置它们。
You have to manually reset them.
因此,如果使用非假日成员来运行输出,则这些输出将使用最后一个值再次初始化。
So if non-holiday member is used to run the outputs those outputs get initialized again with the last value.
好的,这是第二步。
OK this is a second step.
第三是执行任何启动逻辑。
Third is any startup logic is executed.
现在我们的 busy 中有一个特殊的启动逻辑块,它是由 Stata 位及以上创建的。
Now we have a special startup logic block in our buzy which is which is created by Stata bits and up.
有一些特殊的启动鸟在上船之前就被处决了。
There are some special startup birds which are executed before they're on board.
所以这听起来可能非常复杂,但是当我们移动 PC 的编程时我们会理解更多。
So this may sound really complicated but we'll understand more when we move the programming of the PC.
因此,我之前尝试过一些启动逻辑,以便在第三个周期中执行。
So there are some start up logic which I tried to get at before and more so that is executed in the third cycle.
好的。
OK.
现在,下一个周期状态或物理输入被复制到内存中。
Now next cycle state or physical input is copied to memory.
现在那件事发生了什么。
Now what happened in that case.
所以我们所做的就是最初将这段记忆清晰化。
So what we were doing is initially this memory was clear.
好的。
OK.
现在,在下一步中,如果我的代码输入打开,则无论输入打开,它都会被写入我的内存中。
Now in the next step whatever input is on if my code input is on so it will be written in my memory now.
所以所有的输入状态都会在我的记忆中更新。
So all the input status will be updated in my memory.
所以现在的状态是因为我的输入,输入的主要部分是在这个文件上。
So now the status is because of my inputs the main parts are input is on this file being on.
因此,PNC 有一个专用内存来存储我的内存中的输入状态以及此内存学校过程图像导入。
So PNC has a dedicated memory to store the status of my inputs in my memory and this memory school process image import.
这是存储我的输入状态的存储器。
This is the memory which stores the status of my input.
好的。
OK.
因此,Bucy 再次通过执行逻辑,因为您只是读取这些内存的状态,而不是从物理输入中读取,因为这反映了我的输入的状态。
So that Bucy again by executing the logic as you just read the status of these memory not from the physical input because this reflect the status of my inputs.
里面有一段记忆。
There's a memory inside.
您也可以访问该内存。
You can also access this memory.
因此,物理内存仍然被复制,接下来是总统主张执行的任何中断。
So still physical memory is copied and next is any interrupt President argued to execute.
现在,如果您知道滴滴中存在一些具有更高优先级的特殊指令。
Now if you know in drops in drops are some special instructions which has higher priority.
我们的 Veazey 正常扫描周期意味着这些有这些可以在没有这些的情况下执行。
Our normal scan cycle of Veazey which means these are has these these can be executed without.
我的意思是,如果不关心业务,不知道在某种时间内,askand Psycho Pinti 执行器逻辑中发生了什么,比如说五毫秒。
I mean without taking care of business don't know what happened in askand psycho Pinti executer logic in some in some sort in time let's say for five milliseconds.
但如果执行中断,则不会等待五毫秒,而是立即执行。
But if interrupt is executed it will not wait for five millisecond it will execute immediately.
因此,这些被查询为它们没有被执行,但它们被排队等待执行。
So these are qued that these are not execute but these are lined up for execution.
这些将在运行模式下执行,只有主体排列不稳定以避免任何延迟。
These would be execution in the run mode only bodies are lined up instable to avoid any delay.
最后写入进程内存 Q 到 Physick 物理输出作为使能。
At last writing of process memory Q is to Physick physical output as enable.
就像我们有用于输入的内存一样,我们也有类似的用于输出的内存。
So just like we have this memory for inport we also have similar memory for the output.
所以让我在这里采用不同的颜色。
So let me take a different color here.
也许是这个。
Maybe this one.
所以这些是我的输出,这些输出也有一些内存,其中存储输出的销售就像我一样有 Stellas 作为输入。
So these are my output and these output also have some memory in which the store the sales of the outputs just like me have Stellas for the input.
我们有写在这里的输出状态。
We have status for the outputs which are written here.
所以这是启用的,但没有执行。
So this is enabled this is not executed.
这是刚刚启用的。
This is just enabled.
好吧,这里的事情被排除了。
OK here things are being excluded.
输入存储在内存中,但这里它不存储在内存中。
The input is stored in the memory but here it's not stored in the memory.
它刚刚启用。
It is just enabled.
好的。
OK.
它必须知道,然后我们让它运行更多,然后进入运行模式。
It must know that then we have it run more and then comes the run mode.
因此,我们还将看到如何在第二天晚上执行模式的启动,我将向您展示一组不同的其他输入,并将向您展示启动模式。
So we'll also see how the start of mode execute in the next night which I show you a different set of other inputs and I'll show you the startup mode.
有一种光的混合。
There is a blending of light.
然后你就有了运行模式。
Then you have a run mode.
所以启动模式是在运行模式下运行之前。
So startup mode is before the run in run mode.
Q内存被读入物理输出。
Q memory is read into the physical output.
所以现在 Pinti 逻辑中发生的事情是可靠的。
So now what happened in Pinti logic is solid.
假设您必须在输入中具有某种状态。
Suppose you have to have some status in the input.
让我换一种颜色。
Let me take a different color.
也许格陵兰岛假设你有一些公民参与,并且你在欧洲 C 中有一些逻辑,并且逻辑是盐,输出的答案存储在我处理过的内存中。
Maybe Greenland suppose you have some citizen involved and you have some logic in European C and the logic is salt the answer of the output is stored in my processed memory.
好的。
OK.
因此,它节省了立方体内存,不是将其放入物理输出中,那么该内存在运行模式下有一些答案,它可能是零,也可能是一。
So it saves cube memory isn't it into physical output then this memory has some answers in run mode that it could be zero or it could be one.
好的。
OK.
因为正如我所说的 0 1 这是读入输出的。
Because as I put it 0 1 This is read into the output.
现在输出要么有电压,要么没有电压。
Now the output will either have a voltage or it will not have a voltage.
如果此输出有一个,它将给出电压,该电压可能是粒状墙壁或线路和中性线,具体取决于您连接到公共端的内容,或者如果此输出在过程存储器中为零,则它将不会发出任何打开命令。
If this output has one it will give the voltage which is could be granular walls or line and neutral depends on what you connect to the common or if this output is zero in the process memory it will not give any orders it will be open.
因此,在运行模式下,第一步是将内存插入到物理输出中,因此输出内存中的任何信息都会被赋予输出主导权。
So in the run mode the first step is memory inserted into physical output so whatever information you have in the memory of output is given to the output dominance.
这就是它的意思。
This is what it means.
Ok 使此状态将物理输入读入内存。
Ok makes this state a physical input is read into memory.
现在,物理输入的状态又被输入到内存中。
Now again state of physical input this input is entered into the memory.
这是同一个记忆。
This is the same memory.
OK,然后逻辑就被执行了。
Ok then logic is executed.
同样,这个逻辑是如此古老的自我诊断被执行。
Again this logic is so old self diagnostic is performed.
现在,如果您的 PC 出现任何错误,它会对其进行诊断,并且会表明在您的计算机或 HAMC 中存在由其执行的诊断功能,因此您不必为此制定逻辑。
Now if you have any error in your PC it will diagnose it and it will indicate that in your in your computer or in your HAMC there's a diagnostic function which is performed by so you don't have to make a logic for that.
它会自行执行。
It will performed by itself.
因此,如果输入或输出有任何错误,都会指出。
So if there is any error in the input or output it will be indicated.
那么又回到了第一步。
So then again it goes back to the first step.
因此,执行诊断输出的逻辑被写入其中,并且物理输出再次读取输入。
So the logic is executed for diagnostic output is written into it and the physical output again it will read the input.
因此,逻辑为操作员提供了输入,或者给出了输出。
So the logic gives the operator inputs on them or this gives the output.
这个循环不断重复,这个循环称为扫描周期。
This cycle keeps on repeating and this cycle is called scan cycle.
这是受虐者的扫描。
This is the scans and of abusee.
现在这些扫描周期取决于三件事。
Now these scan cycle depends on three things.
第一,如果你有大量输入,你有多少个输入。
Number one how many inputs do you have if you have a large number of inputs.
阅读这些输入将花费大量时间。
It will take a lot of time to read those inputs.
如果您的逻辑很小或很大,它还取决于扫描时间。
If your logic is small or large it also depends how much will be the scan time.
所以这取决于逻辑的长度。
So it depends upon the length of the logic.
它还取决于它具有的输出数量、输入和输出数量以及定义扫描时间频率的对象的长度。
It also depends upon the number of outputs it has on the number of input and output and length of an object defined the scan time frequency.
在这种情况下,中断和复杂化或进程执行循环的任何部分。
And in this kind of time interrupts and complications or process doing any part of the cycle.
正如我在俱乐部中告诉你的那样,并不取决于时间,复杂性意味着读取某些 LMI 中的 ID 输出或在某种程度上与我们定义的在周期的任何部分执行的软件进行通信。
As I told you in clubs does not depends upon time and complication means to read an ID output in some LMI or some extent in communication with our software defined that is executed in any part of the cycle.
这就是流程在任何 Pusey 中的基本运作方式。
So this is how basically how a process works in any Pusey.
这是关于具体的。
This is about specifically about.
但这一般是在所有海域。
But this is generally in all the seas.
好的,让我们继续操作,让我们更详细地了解吸积模式。
OK so let's proceed the operation more let's see in more detail about the accretion mode.
所以我们最初是运行模式,现在是运行模式,你戴着这个绿色的艾洛迪,正如我也通过视频向你展示的那样。
So we have initially the run mode now in run mode you had this green Elodie on as I showed you it by video as well.
这是我的跑步更多内容,因此屏幕已打开。
This is my run more so the screen and it is on.
好的。
OK.
因此,正如我在最后一行中告诉您的那样,重复执行运行模式扫描周期。
So then run mode scan cycle is executed repeatedly as I told you in the last line.
中断可以在进程内的任何点发生和处理。
Interrupts can occur and process at any point within the process.
面对陷阱可能会发生。
Face to entraps can occur as.
现在我们有停止模式和停止模式。
Now we have a stop mode and stop mode.
你有这个橙色和 Itay OK 处于停止模式。
You have this orange and Itay OK in stop mode.
在停止模式下不会有扫描周期忙。
There will be no scan cycle busy at stop mode.
它不会执行程序,您也可以下载停止模式的项目。
It will not execute the program and you can also download a project that stop mode.
您无法在 Pusey 中下载该项目,它是在某些特殊条件下运行的。
You cannot download the project in Pusey it's run in some special conditions.
然后你有启动模式 启动模式是用于启动逻辑的,我在最后一盏灯中解释了这一点,以了解启动 Beauregard 的我有一个小的我们在这里做的,如果我单击播放并且 PC 运行,你会看到这个 Blink。
Then you have startup mode startup mode is for the startup logic which I explained in the last light to see how the startup Beauregard's I have a small we do here if I click play and PC runs you will see this for Blink.
这是启动模式。
This is the startup mode.
所以这是更多事情发生的开始。
So this is the start of more going on.
现在它将返回到运行模式。
And now it will go back to run mode.
所以它变成绿色。
So it goes to green.
很多玩家都会选择启动模式,然后自动选择运行模式。
So many players that is a starter mode and automatically it which is to run mode.
这就是三种不同的 filthy 模式,您可以使用 TIAA shmoozing 中的软件来控制这三种模式,以获得该许可证。
This is how these are three different modes of filthy and you can control these three modes using the software in TIAA shmoozing up for that license.
再次,你有帕特的答案,Starband Emery 说这是为了重置它以重置内存。
Again you have Pat answers and Starband Emery said this is for and reset it for resetting the memory.
在这里您可以将PC的状态从运行更改为停止或停止运行。
And here you can change the status of the PC from run to stop or stop run.
好的。
OK.
这些是部门的运作模式。
These are the operation modes of Dept.
事实上,使用 SES,只有当您停止移动 CPP 时,您才能下载您的产品。
of fact with SES you can download your product only when the CPP you stop moved.
好的。
OK.
不然的话。
Not otherwise.
让我们继续看下一张幻灯片,即数据存储和 Pusey。
So let's proceed to the next slide which is data storage and Pusey.
现在,数据存储意味着如何在 PC 中存储信息以及如何处理内存中的数据。
Now data storage means how you can store the information in PC and how you see process the data in its memory.
所以我们知道最小的信息位是二进制数字位。
So we knew that the single smallest bit of information is a bit which is a binary digit bit.
因此它只有两种状态,要么是 0(表示假或不真),要么是 1(表示真)。
So it has only two states either zero which means false or not true or one which is true.
好的,让我们看看它的结构。
OK so let's see the structure for that.
我有一个例子表明我们有一个电灯开关。
I have an example which shows that we have a light switch.
现在,如果您知道房间里有一盏灯,那么灯再次亮起与 true 相关。
Now if you know we have a light in the room so light is on again related to true.
如果灯灭了,我们可以将其与远方联系起来。
If light is off we can relate that to far.
这就是你如何将关闭的东西与开启的东西联系起来为零。
So that is how you can relate that something which is off is zero something which is on.
这是真实的还是真实的。
It is true or one.
这就是我们处理数字 0 或 1 的方式,因为他不理解字符,因为它理解位。
This is how we process my digital 0 or 1 because he does not understand the characters as it understand the bits.
所以他不知道 1 是什么样子,但它知道什么是 1,什么是真,什么是 0,什么是假。
So the he doesn't know what is like on but it knows what is one which is true and zero which is false.
那么数据结构是怎样的呢。
So what is the data structure.
现在你可以看到这是 16 位 16 位,从 0 1 2 0 到 15 开始。
Now you can see that this is 16 bit 16 bits here starting with 0 1 2 0 to 15.
现在这是一位大数一,这是第二第三第四第五第六第七等等。
Now this is the one bit big number one this is second third fourth fifth sixth seventh and so on.
现在从 0 到 7 收集 8 位。
Now collection of 8 bits here from 0 7.
称为字节 一个字节 一个字节有 8 位凯特,而 16 位的集合称为福特,它是 16 个床位,等于两个字节,因为一个字节是 8 位,即 16 位是 8 乘以 2,我们称之为神的话。
Is called byte one byte one byte has 8 bits Kate and the collection of 16 bit which is called Ford is 16 beds and that is equal to two bytes because one byte is eight bits to by it is eight multiplied by two with the 16 bits and we call it God's word.
因此,当您写入时,这个值的计算方式是 16 次方,您将得到这个范围。
So how this value comes when you write to rest upon is to the power 16 you will have this range.
这就是获取值的方式以及可以启动 8 位数据存储的 8 次方的值。
So that is how you get the value and how much value you can start an 8 bit data storage to the power 8.
好的。
OK.
如果我向你展示我的附录,如果你取 2 的 8 次方,结果是 256。
If I show you my append if you take two take the power of 8 which comes out to be 256.
所以这是我的 8 位的范围,如果我有超过 8 位,我必须使用一个字。
So this is the range of my 8 bits OK if I have more than 8 bits I have to use a word.
我必须使用我的电脑的更多进程或不使用我使用的电脑的更多内存或信息。
I have to use more process or not of my PC more memory of my PC that I used or the information.
这是非常基本的赌注。
It's very basic bet by and what.
好的。
OK.
因此,这是您可以在 Pusey 支持的其他类型中执行此操作的事实之一。
So this is one of the fact you can do it here other types supported by the Pusey.
另一种数据类型是支持。
The one other data type is support.
所以这是更详细的。
So this is in more detail.
我们有一个布尔值,与位 0 或 1 相同。
We have a boolean boolean is same as bit 0 or 1.
所以范围 0 或 1 到布尔值也是 true 或 false。
So ranges 0 or 1 to boolean is also true or false.
大小为 1,但为零或 1。
Size is one but it's zero or 1.
然后我们就有了 8 位的字节。
Then we have byte which is 8 bits.
所以我们有 16 个字节。
So in byte we have 16.
这是十六进制表示形式 0 0 到 f f f f 是 8 位的十六进制表示形式。
This is representation in hexadecimal 0 0 to f f f f is a hexadecimal representation of 8 bits.
好吧,您必须了解这是用十进制或十六进制表示某些内容的非常基本的控制。
Ok you must understand this is a very basic of control to represent something in in decimal or hexadecimal.
如果我使用十六进制,我使用的是 16,并且这个 void 是 16 位。
If I'm using hexadecimal I'm using 16 and this void is 16 bits.
所以 16 位 32 位中的 f f f f 是双倍宽的 4 倍。
So f f f f 4 times in 16 bit 32 bit it's double wide.
所以你的值是 16 位的两倍,那么你就有一个有点像我咬的字符。
So you have twice the value of 16 bit then you have a character which is a bit just like my bite.
然后你有 8 个,即 16 个,但不喜欢“双端”这个词,因为它与“双字”类似。
Then you have eight which is 16 but dislike like the word double end as similar to double word.
这是十六进制到十进制的转换。
This is the conversion of hexadecimal to decimal.
那么当你有十进制值时,你就拥有了真正的实数,你可以使用实数数据类型。
Then you have real real means when you have something in decimal value you can use the real datatype.
所以这定义了数据。
So this defines the data.
如果您的值出现危险,您可以使用整数。
If your values come in and in danger you can use integer.
如果它不是实数,则必须使用实数,否则您将无法获得该分数值。
If it isn't real you have to use real otherwise you will not get this fraction values.
好的,现在我们将在下一课继续这个视频来了解内存区域和一些更简单的程序。
Ok now we will continue this video in the next lesson to understand the memory area and some more simple programs.